package com.cqrt.mapper;

import com.cqrt.entity.PlanTemplate;
import oracle.sql.TIMESTAMP;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PlanTemplateMappper {

    String selectRootIdByoid(@Param("oid") String oid);

    void insertPlanTemplate(PlanTemplate planTemplate);

    String selectPlanExist(@Param("oid") String curPlanOID);

    void updatePlanTemplate(@Param("aoid") String oid,@Param("boid")String boid);

    String selectPlanOidByPJOid(@Param("pjoid")String pjoid);

    Map<String, TIMESTAMP> selectPlanByActivityId(@Param("activityId") String activityId);

    List<String> selectPrePlanNameById(@Param("id") String id);

    List<String> selectSimilarTemplate(@Param("oid") String oid);
}
